// 权限管理
const Permission = () => import('@/pages/permission')
const UserManage = () => import('@/pages/permission/user-manage')
const RoleManage = () => import('@/pages/permission/role-manage')
const MenuManage = () => import('@/pages/permission/menu-manage')
/* 需要权限判断的路由 */
const Farm = () => import('@/pages/farm')
const Order = () => import('@/pages/order')
const Staff = () => import('@/pages/staff')
const User = () => import('@/pages/user')
const Zuowu = () => import('@/pages/zuowu')
const dynamicRoutes = [
    {
        path: '/farm',
        name: 'farm',
        component: Farm,
        meta: {
            name: '农场管理',
            icon: 'table'
        }
    },
    {
        path: '/zuowu',
        name: 'zuowu',
        component: Zuowu,
        meta: {
            name: '作物管理',
            icon: 'table'
        }
    },
    {
        path: '/order',
        name: 'order',
        component: Order,
        meta: {
            name: '订单管理',
            icon: 'table'
        }
    },
    {
        path: '/staff',
        name: 'staff',
        component: Staff,
        meta: {
            name: '员工管理',
            icon: 'table'
        }
    },
    {
        path: '/user',
        name: 'user',
        component: User,
        meta: {
            name: '用户管理',
            icon: 'table'
        }
    }
]

export default dynamicRoutes
